package com.zjuh.taofood.biz.similar;

import wint.lang.utils.StringUtil;
import wint.tools.similar.content.Content;

public class TaobaoItemContent extends Content {

	private String itemTitle;
	
	private String description;
	
	private String catName;
	
	@Override
	public String getValue() {
		String catName =  StringUtil.trimToEmpty(this.catName);
		if (StringUtil.isEmpty(description)) {
			return itemTitle + " " + catName;
		}
		return itemTitle  + " " + itemTitle + " " + itemTitle + " " + " " + catName + " " + catName + "" + StringUtil.trimToEmpty(description);
	}

	public String getItemTitle() {
		return itemTitle;
	}

	public void setItemTitle(String itemTitle) {
		this.itemTitle = itemTitle;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	public void setId(String id) {
		this.id = id;
	}

	public String getCatName() {
		return catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

}
